package com.info.zhiduoduo.repository.entity.notice;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author bob
 * @since 2020-01-04
 */
@Data
@Accessors(chain = true)
@TableName("zdd_ceo_notice_record")
public class CeoNoticeRecord extends Model<CeoNoticeRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * CEO通知检测类型
     */
    private Integer type;
    /**
     * 业务id，创客id，企业id，项目id等
     */
    private Integer bizid;
    /**
     * 检测持续时间，单位小时
     */
    private Integer duration;
    /**
     * 状态 1：检测中 2：已发送 3：取消发送
     */
    private Integer state;
    /**
     * 检测创建时间
     */
    private Date createtime;
    /**
     * 截至时间
     */
    private Date expiretime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
